import { v4 } from 'uuid'

function uuid(): string {
  return v4()
}

function getImageUrl(width: number, height: number): string {
  const suffix = uuid()
  return `https://picsum.photos/${width}/${height}?r=${suffix}`
}
export { uuid, getImageUrl }
